//
//  UploadViewModel.m
//  ForYourBeauty
//
//  Created by Kelly xu on 2019/6/3.
//  Copyright © 2019 changrenTech. All rights reserved.
//

#import "UploadViewModel.h"

@implementation UploadViewModel
-(void)uploadImg:(UIImage*)image cmp:(void(^)(NSString *userIconUrl))cmp{
    [[HttpClient shareClient]uploadImage:image url:UPLOADIMG formDataParam:@{} suc:^(id results) {
        cmp([results objectForKey:@"data"]);
    } fail:^(NSString *error, NSInteger status) {
        Toast(error);
    }];
}
@end
